#!/bin/sh
#Version 1.0
echo "Hello"

JARLOCALE="/users/clues/documents/EclipseWorkspace/RD-AD-Server/RD-AD-Server_fat.jar"
SERVER="/Users/Clues/Documents/RD-0.10.2/"
DATAFILE="/Users/Clues/Documents/EclipseWorkspace/RD-AD-Server/data"


echo "Update Jar? (y/n)"
read choice1
if [ "$choice1" == "y" ]
then
	cp "$JARLOCALE" "$SERVER/deploy"
fi
echo "Update data folder? (y/n)"
read choice2
if [ "$choice2" = "y" ]
then
	cp -R -f "$DATAFILE" "$SERVER"
fi

echo "Running Server"
java -jar "$SERVER/bin/sgs-boot.jar"

exit 0